How To Lose At Tic-Tac-Toe, Optimally And With Skill